{{extend 'layout.html'}}


<script type="text/javascript">
$(document).ready(function(){
    jQuery('div.reports,div#_reports').slideToggle();
    jQuery('div.setup,table#_setup').slideToggle();
 });

</script>

<div>
{{=button('On-air Screen','frame_wrapper_onair.html')}}
{{=button('Pledge Entry','frame_wrapper_pledge_entry.html')}}
<button onclick="jQuery('div.reports,div#_reports').slideToggle();">{{=T("Reports")}}</button>
<button onclick="jQuery('div.setup,div#_setup').slideToggle();">{{=T("Setup")}}</button>
</div>

<div class="reports">
<ul>
<li><a href="{{=URL(r=request,f='report_segments_by_pledgedrive',args=session.pledgedrive['id'])}}">{{=T("Segment Report")}}</a></li>
<li><a href="{{=URL(r=request,f='report_single_segment',args=session.pledgedrive['id'])}}">{{=T("Single Segment Report")}}</a></li>
<li><a href="{{=URL(r=request,f='report_pledge_level',args=session.pledgedrive['id'])}}">{{=T("Pledge Levels Report")}}</a></li>
<li><a href="{{=URL(r=request,f='report_day_total_summary',args=session.pledgedrive['id'])}}">{{=T("Day Totals Report")}}</a></li>
<li><a href="{{=URL(r=request,f='report_pledgedrive_totals_detailed',args=session.pledgedrive['id'])}}">{{=T("Drive Totals (detailed)")}}</a></li>
<li><a href="{{=URL(r=request,f='report_pledgedrive_totals',args=session.pledgedrive['id'])}}">{{=T("Drive Totals (summary)")}}</a></li>
</ul>
</div>

<div class="setup">
    <a href="{{=URL(r=request,f='list_organizations')}}">{{=T("List Organizations")}}</a> <br />
    <a href="{{=URL(r=request,f='view_organization',args=session.organization['id'])}}">{{=T("View Currently Selected Organization")}}</a> |
    <a href="{{=URL(r=request,f='edit_organization',args=session.organization['id'])}}">{{=T("Edit Selected Organization")}}</a> |<br />
    <a href="{{=URL(r=request,f='list_programs_by_organization',args=session.organization['id'])}}">{{=T("List Programs")}}</a> |
    <a href="{{=URL(r=request,f='create_program',args=session.organization['id'])}}">{{=T("Add a New Program")}}</a> |
    <a href="{{=URL(r=request,f='create_program_import',args=session.organization['id'])}}">{{=T("Import Program List")}}</a> |<br />
    <a href="{{=URL(r=request,f='list_persons_by_organization',args=session.organization['id'])}}">{{=T("List Persons")}}</a> |
    <a href="{{=URL(r=request,f='create_person',args=session.organization['id'])}}">{{=T("Add a New Person")}}</a> |<br />
    <a href="{{=URL(r=request,f='list_pledgedrives_by_organization',args=session.organization['id'])}}">{{=T("List Pledge Drives")}}</a> |
    <a href="{{=URL(r=request,f='create_pledgedrive',args=session.organization['id'])}}">{{=T("Add a New Pledge Drive")}}</a> <br />
    <a href="{{=URL(r=request,f='view_pledgedrive',args=session.pledgedrive['id'])}}">{{=T("View Currently Selected Pledge Drive")}}</a><br />
    <a href="{{=URL(r=request,f='list_challenges_by_pledgedrive',args=session.pledgedrive['id'])}}">{{=T("List Challenges for Current Pledge Drive")}}</a> |
    <a href="{{=URL(r=request,f='create_challenge',args=session.pledgedrive['id'])}}">{{=T("Add Challenge to Current Pledge Drive")}}</a> <br />
    <a href="{{=URL(r=request,f='list_segments_by_pledgedrive',args=session.pledgedrive['id'])}}">{{=T("List Segments for Current Pledge Drive")}}</a> |    <a href="{{=URL(r=request,f='create_segment',args=session.pledgedrive['id'])}}">{{=T("Add Segment to Current Pledge Drive")}}</a> <br />
    <a href="{{=URL(r=request,f='list_pledges_by_pledgedrive',args=session.pledgedrive['id'])}}">{{=T("List Pledges for Current Pledge Drive")}}</a> <br />
    <a href="{{=URL(r=request,f='list_pledges_by_segment',args=session.segment['id'])}}">{{=T("List Pledges for Current Segment")}}</a> |
    <a href="{{=URL(r=request,f='create_pledge',args=session.segment['id'])}}">{{=T("Add Pledge to Current Segment")}}</a><br />
    <a href="{{=URL(r=request,f='post_list',args=session.organization['id'])}}">{{=T("List Producer Messages")}}</a> | 
    <a href="{{=URL(r=request,f='post_add',args=session.organization['id'])}}">{{=T("Add Message")}}</a><br />
<p>
{{=button('Quick Setup: Segments','quick_setup_segment')}}
</p>
</div>

<div>
{{=T("Selected Organization")}}: {{=session.organization['name']}}
<div>
{{pass}}{{=button('Select a new organization','session_organization_id_form')}}
</div>
</div>

<div>
{{=T("Selected Pledge Drive")}}: {{=session.pledgedrive['title']}}
<div>
{{pass}}{{=button('Select a new pledgedrive','session_pledgedrive_id_form')}}
</div>
</div>

<div>
{{=T("Selected Segment")}}: {{=session.segment['title']}}
<div>
{{pass}}{{=button('Select a new segment','session_segment_id_form')}}
</div>
</div>


<!--
{{try:}}{{=H2(message)}}{{except:}}{{=BEAUTIFY(response._vars)}}{{pass}}
-->
